package com.atguigu.mybatisplus.model.form;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.Valid;
import lombok.Data;

@Data
public class DeptForm {
    /**
     * 部门编号
     */
    @Schema(description = "部门编号")
    private String code;
    /**
     * 部门ID
     */
    @Schema(description = "部门ID")
    private Long id;
    /**
     * 部门名称
     */
    @Schema(description = "部门名称")
    private String name;
    /**
     * 父部门ID
     */
    @Valid
    @Schema(description = "父部门ID")
    private long parentId;
    /**
     * 排序(数字越小排名越靠前)
     */
    @Schema(description = "排序(数字越小排名越靠前)")
    private Long sort;
    /**
     * 状态(1:启用;0:禁用)
     */
    @Schema(description = "状态(1:启用;0:禁用)")
    private Long status;
}
